package com.wildwolf.project.wildwolf.utils;

/**
 * 符号映射 解决用户使用Email登陆 而不影响现在的登陆逻辑
 * 
 * @author LEON
 * 
 */
public final class SymbolMapping {
	/**
	 * 元神
	 */
	private static final String PRIMORDIAL = "@";
	/**
	 * 替身
	 */
	private static final String SCAPEGOAT = "$";

	/**
	 * 现身 将$替换为@
	 * 
	 * @param manito
	 * @return
	 */
	public static String mysticalAppearance(String manito) {

		return manito.replace(SCAPEGOAT, PRIMORDIAL);

	}

	/**
	 * 隐身 将@替换为$
	 * 
	 * @param manito
	 * @return
	 */
	public static String mysticalCloaking(String manito) {
		return manito.replace(PRIMORDIAL, SCAPEGOAT);

	}
}
